
// import query from '@feidao/web/atom/nodejs/db/query';
import query from '@dfeidao/atom-nodejs/db/query';
interface Message {
	filter: { productid: string };
}

// 查询数据(角色类型)
export default async function atom(msg: Message, action_id: string, session_id: string) {
	const systemid = '12';
	const { exec, prepare } = query(action_id, session_id, systemid);
	prepare('pub_role_type', ['_id', 'role_type_name', 'tablename', 'field', 'fieldtitle', 'search_field', 'search_title', 'modelid', 'systemid', 'productid'], msg.filter, 100, 1, [], []);
	const [data] = await exec();
	return { dataArray: data };
}
